package com.drojian.demo2.broadcast.test1;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;

public class MyBroadcastReceiver extends BroadcastReceiver  {

    @Override
    public void onReceive(Context context, Intent intent) {
            String s = intent.getStringExtra(Constants.KEY_DATA);
            Log.d("TAG", "Received message: " + s);
            Toast.makeText(context, s, Toast.LENGTH_SHORT).show();
        }
}
